package org.jeecgframework.web.system.pojo.base;

import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;

import org.jeecgframework.core.util.ApplicationContextUtil;
import org.jeecgframework.web.service.UploadEquipmentService;


/**
 * @author xiul
 * 2016-6-6 下午5:08:15
 * Description 
 */
public class ZyUpEquipmentCheckSnThread implements Callable<Map<String, String>>{
	
	public List<Map<String, String>> snMapList;
	
	public int begin;
	
	public int end;
	
	private static UploadEquipmentService uploadEquipmentService = ApplicationContextUtil.getBean("uploadEquipmentService");
	
	public ZyUpEquipmentCheckSnThread(){}
	
	public ZyUpEquipmentCheckSnThread(List<Map<String, String>> snMapList,int begin,int end){
		this.snMapList = snMapList;
		this.begin = begin;
		this.end = end;
	}
	
	@Override
	public Map<String, String> call() throws Exception {
		return uploadEquipmentService.checkSnRepeat(snMapList, begin, end);
	}
	
	
	public List<Map<String, String>> getSnMapList() {
		return snMapList;
	}
	public void setSnMapList(List<Map<String, String>> snMapList) {
		this.snMapList = snMapList;
	}

	public int getBegin() {
		return begin;
	}
	public void setBegin(int begin) {
		this.begin = begin;
	}
	public int getEnd() {
		return end;
	}
	public void setEnd(int end) {
		this.end = end;
	}
	
	
	
	
}
